package org.dtrd.modules.doctor.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.sql.Date;

/**
 * @author 51465
 */

@ApiModel("患者逆转服务信息")
@Getter
@Setter
public class PatientServiceInfo {

    @ApiModelProperty("患者Id")
    private Integer patientId;

    @ApiModelProperty("医生Id")
    private Integer doctorId;

    @ApiModelProperty("医生姓名")
    private String doctorName;

    @ApiModelProperty("患者姓名")
    private String patientsName;

    @ApiModelProperty("患者性别")
    private Integer patientsSex;

    @ApiModelProperty("患者出生日期")
    private Date patientsBirthday;

    @ApiModelProperty("患者年龄")
    private Integer patientsAge;

    @ApiModelProperty("服务包开始时间")
    private Date startTime;

    @ApiModelProperty("服务包结束时间")
    private Date endTime;

    private Integer patientsDiabetisType;
    @ApiModelProperty("糖尿病类型")
    private String patientsDiabetisTypeName;

    @ApiModelProperty("患者糖尿病确诊日期")
    private Date patientsConfirmedDate;

    @ApiModelProperty("患者描述")
    private String patientsDescription;

    @ApiModelProperty("患者头像地址")
    private String patientsImg;

//    public DoctorReverseServiceInfo parseFromPO (DoctorReverseServiceInfo po) {
//        this.patientsName = po.getPatientsName();
//        this.patientsBirthday = po.getPatientsBirthday();
//        this.startTime = po.getStartTime();
//        this.endTime = po.getEndTime();
//        if (po.getPatientsDiabetisType() != null) {
//            this.patientsDiabetisType = Constant.DiabetesType.valueOf(po.getPatientsDiabetisType()).getName();
//        }else {
//            this.patientsDiabetisType = null;
//        }
//        this.patientsConfirmedDate = po.getPatientsConfirmedDate();
//        this.patientsDescription = po.getPatientsDescription();
//        return this;
//    }
}
